<?php
use \yii\helpers\Html;
?>

<table class="yx-course-info yx-course-info1 yx-course-info2" style="table-layout: fixed">
    <tr id="goodscat_id">
        <td>分类</td>
        <td> <?=(!empty($category)&&isset($category->name))?$category->name:'';?></td>
    </tr>
    <tr id="goodsbrand_id" style="display: none">
        <td>品牌</td>
        <td> <?=(!empty($brand)&&isset($brand->name))?$brand->name:'';?></td>
    </tr>
    <tr id="goodsname">
        <td><?= $model->attributeLabels()['name']; ?></td>
        <td><?=Html::encode($model->name);?></td>
    </tr>
    <tr id="goodsmechanic_id">
        <td>机构</td>
        <td><?=(!empty($mechanic)&&isset($mechanic->name))?$mechanic->name:'';?></td>
    </tr>
    <tr id="goodssn">
        <td><?= $model->attributeLabels()['sn']; ?></td>
        <td> <?=Html::encode($model->sn);?></td>
    </tr>
    <tr id="goodsprice">
        <td><?= $model->attributeLabels()['price']; ?></td>
        <td><?=Html::encode($model->price);?></td>
    </tr>
    <tr id="goodscost">
        <td><?= $model->attributeLabels()['cost']; ?></td>
        <td><?=Html::encode($model->cost);?></td>
    </tr>
    <tr id="goodsmarket_price">
        <td><?= $model->attributeLabels()['market_price']; ?></td>
        <td><?=Html::encode($model->market_price);?></td>
    </tr>
    <tr id="goodsstore">
        <td><?= $model->attributeLabels()['store']; ?></td>
        <td><?=Html::encode($model->store);?></td>
    </tr>
    <tr id="goodspicture">
        <td ><?= $model->attributeLabels()['picture']; ?></td>
        <td style="word-wrap:break-word"> <img style="width: 60px;height: 60px" src="<?=Html::encode($model->picture)?>"/></td>
    </tr>
    <tr id="goodsdescription">
        <td><?= $model->attributeLabels()['description']; ?></td>
        <td><?=$model->description?></td>
    </tr>
    <tr id="goodscontent">
        <td><?= $model->attributeLabels()['content']; ?></td>
        <td><?=$model->content?></td>
    </tr>

    <tr id="goodsmax_buy">
        <td><?= $model->attributeLabels()['max_buy']; ?></td>
        <td><?=Html::encode($model->max_buy);?></td>
    </tr>
    <tr id="goodsscore">
        <td><?= $model->attributeLabels()['score']; ?></td>
        <td><?=Html::encode($model->score);?></td>
    </tr>
    <tr id="goodsstore_prompt">
        <td><?= $model->attributeLabels()['store_prompt']; ?></td>
        <td> <?=Html::encode($model->store_prompt);?></td>
    </tr>
    <tr id="goodsnostore_sell">
        <td><?= $model->attributeLabels()['nostore_sell']; ?></td>
        <td><?=Html::encode($model->nostore_sell=='Y'?'是':'否');?></td>
    </tr>
    <tr id="goodsis_buy">
        <td><?= $model->attributeLabels()['is_buy']; ?></td>
        <td><?=Html::encode($model->is_buy=='1'?'是':'否');?></td>
    </tr>
    <tr id="goodsis_show">
        <td><?= $model->attributeLabels()['is_show']; ?></td>
        <td><?=Html::encode($model->is_show=='1'?'是':'否');?></td>
    </tr>
    <tr id="goodsis_shelve">
        <td><?= $model->attributeLabels()['is_shelve']; ?></td>
        <td><?=Html::encode($model->is_shelve=='1'?'上架':'下架');?></td>
    </tr>
    <?=$attributedetail?>
</table>

